package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjWorkDispatchEngineerCooperate;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 工单分派工程师协同表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-10-23
 */
@Repository
public interface ZjWorkDispatchEngineerCooperateMapper extends BaseMapper<ZjWorkDispatchEngineerCooperate> {

    /**
     * 根据[工单分派工程师表ID]删除协同人
     * @param workDispatchEngineerId 工单分派工程师表ID
     */
    int deleteByWorkDispatchEngineerId(@Param("workDispatchEngineerId") Long workDispatchEngineerId);

    /**
     * 根据服务人员ID获取协同工单数量
     * @param custAccId 商家ID
     * @param netwokId 服务商ID
     * @param networkEmpId 服务人员ID
     * @return
     */
    long getCooperateOrderQty(@Param("custAccId") Long custAccId, @Param("netwokId") Long netwokId, @Param("networkEmpId") Long networkEmpId);


}
